import {StyleSheet} from 'react-native';
import px2dp from '../../utils/px2dp';

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  head_icon: {
    marginRight: px2dp(36),
    fontSize: px2dp(44),
    color: '#333333',
  },
  wrapper_container: {
    height: px2dp(280),
    marginHorizontal: px2dp(24),
  },
  wrapper: {
    width: '100%',
    backgroundColor: '#f7f7f7',
    height: px2dp(280),
  },
  img_container: {
    width: '100%',
    height: px2dp(280),
    justifyContent: 'center',
    alignItems: 'center',
  },
  tabs_container: {
    flexDirection: 'row',
    height: px2dp(68),
  },
  btn: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
  },
  btn_text: {
    color: '#333333',
    fontSize: px2dp(26),
  },
  btn_text_selected: {
    color: '#EB0029',
    fontWeight: 'bold',
  },
  selected: {
    width: px2dp(24),
    height: px2dp(5),
    backgroundColor: '#EB0029',
    borderRadius: px2dp(3),
    position: 'absolute',
    bottom: 0,
    left: '50%',
    marginLeft: px2dp(-12),
  },
  line: {
    width: px2dp(24),
    height: px2dp(5),
    backgroundColor: '#EB0029',
    borderRadius: px2dp(3),
    position: 'absolute',
    bottom: 0,
    left: '50%',
    marginLeft: px2dp(-12),
  },
  list_container: {
    flex: 1,
    paddingHorizontal: px2dp(24),
    paddingVertical: px2dp(10),
  },
  list: {
    width: '100%',
    // height: px2dp(200),
  },
  big_title: {
    fontSize: px2dp(24),
    color: '#333333',
    lineHeight: px2dp(34),
    marginVertical: px2dp(10),
  },
  small_title_container: {
    flex: 1,
    flexDirection: 'row',
    justifyContent: 'flex-end',
    alignContent: 'center',
  },
  small_title: {
    color: '#999',
    fontSize: px2dp(20),
  },
  detail_icon: {
    fontSize: px2dp(20),
    color: '#999',
    marginLeft: px2dp(16),
  },

  list_head: {
    flexDirection: 'row',
  },
  avatar: {
    width: px2dp(68),
    height: px2dp(68),
    borderRadius: px2dp(34),
    marginLeft: px2dp(15),
    marginRight: px2dp(19),
    marginTop: px2dp(17),
    backgroundColor: '#f7f7f7',
  },
  info: {
    marginTop: px2dp(10),
    justifyContent: 'space-between',
    height: px2dp(68),
    paddingVertical: px2dp(9),
  },
  info_name: {
    fontSize: px2dp(26),
    color: '#333',
    fontWeight: 'bold',
  },
  info_time: {
    color: '#999',
  },
  topic: {
    marginTop: px2dp(15),
  },
  topic_text: {
    fontWeight: 'bold',
  },
  star_teach_webview: {
    flex: 1,
    height: px2dp(80),
    marginTop: px2dp(15),
    marginBottom: px2dp(10),
  },
});

export default styles;
